package com.test.study.shiro_demo.dao;

import com.test.study.shiro_demo.entity.TRolePerms;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface TRolePermsDao {

    TRolePerms getById(Integer id);

    List<TRolePerms> listByEntity(TRolePerms tRolePerms);

    TRolePerms getByEntity(TRolePerms tRolePerms);

    List<TRolePerms> listByIds(List<Integer> list);

    int insert(TRolePerms tRolePerms);

    int insertBatch(List<TRolePerms> list);

    int update(TRolePerms tRolePerms);

    int updateByField(@Param("where") TRolePerms where, @Param("set") TRolePerms set);

    int updateBatch(List<TRolePerms> list);

    int deleteById(Integer id);

    int deleteByEntity(TRolePerms tRolePerms);
  
    int deleteByIds(List<Integer> list);
    
    int countAll();
    
    int countByEntity(TRolePerms tRolePerms);
    
}